<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\modules\message\model\Feed | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.modules.message.model.html" title="Summary of application\modules\message\model"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li class="active">
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.modules.message.model.Atme.html">Atme</a></li>
				<li><a href="class-application.modules.message.model.Comment.html">Comment</a></li>
				<li class="active"><a href="class-application.modules.message.model.Feed.html">Feed</a></li>
				<li><a href="class-application.modules.message.model.FeedData.html">FeedData</a></li>
				<li><a href="class-application.modules.message.model.FeedDigg.html">FeedDigg</a></li>
				<li><a href="class-application.modules.message.model.Message.html">Message</a></li>
				<li><a href="class-application.modules.message.model.MessageContent.html">MessageContent</a></li>
				<li><a href="class-application.modules.message.model.MessageList.html">MessageList</a></li>
				<li><a href="class-application.modules.message.model.MessageUser.html">MessageUser</a></li>
				<li><a href="class-application.modules.message.model.Notify.html">Notify</a></li>
				<li><a href="class-application.modules.message.model.NotifyEmail.html">NotifyEmail</a></li>
				<li><a href="class-application.modules.message.model.NotifyMessage.html">NotifyMessage</a></li>
				<li><a href="class-application.modules.message.model.NotifySms.html">NotifySms</a></li>
				<li><a href="class-application.modules.message.model.UserData.html">UserData</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Feed</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CActiveRecord
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
			<a href="class-application.core.model.Model.html"><span>application\core\model\Model</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\modules\message\model\Feed</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.modules.html">modules</a>\<a href="namespace-application.modules.message.html">message</a>\<a href="namespace-application.modules.message.model.html">model</a><br>
		

			<b>Located at</b> system/modules/message/model/Feed.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="model" id="_model">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_model">#</a>
			<code>model( <span> <var>$className</var> = __CLASS__ </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="tableName" id="_tableName">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_tableName">#</a>
			<code>tableName( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="getRecentFeeds" id="_getRecentFeeds">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getRecentFeeds">#</a>
			<code>getRecentFeeds( <span>integer <var>$num</var> = <span class="php-num">4</span> </span> )</code>

			<div class="description short">
				<p>获取最近的几条微博</p>
			</div>

			<div class="description detailed hidden">
				<p>获取最近的几条微博</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$num</var></dt>
						<dd>要获取的条数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>微博数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getList" id="_getList">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getList">#</a>
			<code>getList( <span>array <var>$map</var></span>, <span>integer <var>$limit</var> = <span class="php-num">10</span></span>, <span>integer <var>$offset</var> = <span class="php-num">0</span></span>, <span>string <var>$order</var> = <span class="php-keyword1">null</span> </span> )</code>

			<div class="description short">
				<p>获取微博列表</p>
			</div>

			<div class="description detailed hidden">
				<p>获取微博列表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$map</var></dt>
						<dd>查询条件</dd>
						<dt><var>$limit</var></dt>
						<dd>结果集数目，默认为10</dd>
						<dt><var>$offset</var></dt>
						<dd>记录偏移量，默认为0 （即当前页数）</dd>
						<dt><var>$order</var></dt>
						<dd>排序字段</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>微博列表数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFollowingFeed" id="_getFollowingFeed">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFollowingFeed">#</a>
			<code>getFollowingFeed( <span>string <var>$where</var> = <span class="php-quote">''</span></span>, <span>integer <var>$limit</var> = <span class="php-num">10</span></span>, <span>integer <var>$offset</var> = <span class="php-num">0</span></span>, <span>integer <var>$uid</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>获取指定用户所关注人的所有微博，默认为当前登录用户</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定用户所关注人的所有微博，默认为当前登录用户</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$where</var></dt>
						<dd>查询条件</dd>
						<dt><var>$limit</var></dt>
						<dd>结果集数目，默认为10</dd>
						<dt><var>$offset</var></dt>
						<dd>$uid 指定用户ID，默认为空</dd>
						<dt><var>$uid</var></dt>
						<dd>$fgid 关组组ID，默认为空</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>指定用户所关注人的所有微博，默认为当前登录用户
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countFollowingFeed" id="_countFollowingFeed">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countFollowingFeed">#</a>
			<code>countFollowingFeed( <span>string <var>$where</var> = <span class="php-quote">''</span></span>, <span>integer <var>$uid</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>统计指定用户所关注人的所有微博微博数，默认为当前登录用户</p>
			</div>

			<div class="description detailed hidden">
				<p>统计指定用户所关注人的所有微博微博数，默认为当前登录用户</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$where</var></dt>
						<dd>查询条件</dd>
						<dt><var>$uid</var></dt>
						<dd>指定用户ID，默认为空</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="get" id="_get">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_get">#</a>
			<code>get( <span>integer <var>$feedId</var></span> )</code>

			<div class="description short">
				<p>获取指定动态的信息</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定动态的信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$feedId</var></dt>
						<dd>$feed_id 动态ID</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>获取失败返回false，成功返回动态信息
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFeeds" id="_getFeeds">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFeeds">#</a>
			<code>getFeeds( <span>array <var>$feedIds</var></span> )</code>

			<div class="description short">
				<p>获取给定动态ID的动态信息</p>
			</div>

			<div class="description detailed hidden">
				<p>获取给定动态ID的动态信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$feedIds</var></dt>
						<dd>动态ID数组</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>给定动态ID的动态信息
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="put" id="_put">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_put">#</a>
			<code>put( <span>integer <var>$uid</var></span>, <span>string <var>$module</var> = <span class="php-quote">'weibo'</span></span>, <span>string <var>$type</var> = <span class="php-quote">''</span></span>, <span>array <var>$data</var> = <span class="php-keyword1">array</span>()</span>, <span>integer <var>$rowid</var> = <span class="php-num">0</span></span>, <span>string <var>$table</var> = <span class="php-quote">'feed'</span></span>, <span>array <var>$extUid</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$lessUids</var> = <span class="php-keyword1">null</span></span>, <span>boolean <var>$isAtMe</var> = <span class="php-keyword1">true</span></span>, <span>integer <var>$isRepost</var> = <span class="php-num">0</span> </span>, <span>string <var>$url</var>,…</span>, <span>string <var>$detail</var>,…</span> )</code>

			<div class="description short">
				<p>添加动态</p>
			</div>

			<div class="description detailed hidden">
				<p>添加动态</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$uid</var></dt>
						<dd>操作用户ID</dd>
						<dt><var>$module</var></dt>
						<dd>动态模块,默认为weibo</dd>
						<dt><var>$type</var></dt>
						<dd>动态类型</dd>
						<dt><var>$data</var></dt>
						<dd>动态相关数据</dd>
						<dt><var>$rowid</var></dt>
						<dd>应用资源ID，默认为0</dd>
						<dt><var>$table</var></dt>
						<dd>资源表名，默认为feed</dd>
						<dt><var>$extUid</var></dt>
						<dd>额外用户ID，默认为null</dd>
						<dt><var>$lessUids</var></dt>
						<dd>去除的用户ID，默认为null</dd>
						<dt><var>$isAtMe</var></dt>
						<dd>是否为进行发送，默认为true</dd>
						<dt><var>$isRepost</var></dt>
						<dd>是否为转发</dd>
						<dt><var>$url</var>,…</dt>
						<dd>消息来源地址</dd>
						<dt><var>$detail</var>,…</dt>
						<dd>消息来源描述说明</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>添加失败返回false，成功返回新的微博ID
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="formatFeedContent" id="_formatFeedContent">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_formatFeedContent">#</a>
			<code>formatFeedContent( <span>string <var>$content</var></span>, <span>string <var>$weiboNums</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>截取微博内容，将微博中的URL替换成{ts_urlX}进行字符数目统计</p>
			</div>

			<div class="description detailed hidden">
				<p>截取微博内容，将微博中的URL替换成{ts_urlX}进行字符数目统计</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$content</var></dt>
						<dd>微博内容</dd>
						<dt><var>$weiboNums</var></dt>
						<dd>微博截取数目，默认为0</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>格式化后的微博内容，body与content
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="doEditFeed" id="_doEditFeed">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_doEditFeed">#</a>
			<code>doEditFeed( <span>integer <var>$feedid</var></span>, <span>string <var>$type</var></span>, <span>string <var>$uid</var> = <span class="php-keyword1">null</span> </span> )</code>

			<div class="description short">
				<p>微博操作，彻底删除、假删除、回复</p>
			</div>

			<div class="description detailed hidden">
				<p>微博操作，彻底删除、假删除、回复</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$feedid</var></dt>
						<dd>$feed_id 微博ID</dd>
						<dt><var>$type</var></dt>
						<dd>微博操作类型，deleteFeed：彻底删除，delFeed：假删除，feedRecover：恢复</dd>
						<dt><var>$uid</var></dt>
						<dd>删除微博的用户ID（区别超级管理员）</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>微博操作后的结果信息数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFeedInfo" id="_getFeedInfo">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFeedInfo">#</a>
			<code>getFeedInfo( <span>integer <var>$id</var></span>, <span>boolean <var>$forApi</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>获取指定动态的信息，用于资源模型输出</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定动态的信息，用于资源模型输出</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$id</var></dt>
						<dd>微博ID</dd>
						<dt><var>$forApi</var></dt>
						<dd>是否提供API数据，默认为false</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>指定微博数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="cleanCache" id="_cleanCache">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_cleanCache">#</a>
			<code>cleanCache( <span>array <var>$feedIds</var> = <span class="php-keyword1">array</span>()</span>, <span>integer <var>$uid</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>清除指定用户指定动态的列表缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>清除指定用户指定动态的列表缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$feedIds</var></dt>
						<dd>动态ID数组，默认为空</dd>
						<dt><var>$uid</var></dt>
						<dd>用户ID，默认为空</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="countSearchFeeds" id="_countSearchFeeds">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countSearchFeeds">#</a>
			<code>countSearchFeeds( <span>string <var>$key</var></span>, <span>string <var>$feedType</var> = <span class="php-keyword1">null</span></span>, <span>integer <var>$sTime</var> = <span class="php-num">0</span></span>, <span>integer <var>$eTime</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>统计要查询的feed数量</p>
			</div>

			<div class="description detailed hidden">
				<p>统计要查询的feed数量</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$feedType</var></dt>
						<dd>$type 微博类型，post、repost、postimage</dd>
						<dt><var>$sTime</var></dt>
						<dd>开始时间戳</dd>
						<dt><var>$eTime</var></dt>
						<dd>结束时间戳</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countSearchFollowing" id="_countSearchFollowing">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countSearchFollowing">#</a>
			<code>countSearchFollowing( <span>string <var>$key</var></span>, <span>integer <var>$loadId</var></span> )</code>

			<div class="description short">
				<p>统计查询的关注微博数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计查询的关注微博数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$loadId</var></dt>
						<dd>载入微博ID，从此微博ID开始搜索</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countSearchAll" id="_countSearchAll">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countSearchAll">#</a>
			<code>countSearchAll( <span>string <var>$key</var></span>, <span>integer <var>$loadId</var></span>, <span>string <var>$feedtype</var> = <span class="php-quote">''</span></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>统计查询的所有微博数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计查询的所有微博数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$loadId</var></dt>
						<dd>载入微博ID，从此微博ID开始搜索</dd>
						<dt><var>$feedtype</var></dt>
						<dd>微博类型</dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="countSearchMovement" id="_countSearchMovement">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_countSearchMovement">#</a>
			<code>countSearchMovement( <span>string <var>$key</var></span>, <span>integer <var>$loadId</var></span>, <span>string <var>$feedtype</var> = <span class="php-quote">''</span></span>, <span>integer <var>$uid</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>统计查询的动态微博数</p>
			</div>

			<div class="description detailed hidden">
				<p>统计查询的动态微博数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$loadId</var></dt>
						<dd>载入微博ID，从此微博ID开始搜索</dd>
						<dt><var>$feedtype</var></dt>
						<dd>微博类型</dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="searchFeed" id="_searchFeed">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_searchFeed">#</a>
			<code>searchFeed( <span>string <var>$key</var></span>, <span>string <var>$type</var></span>, <span>integer <var>$loadId</var></span>, <span>integer <var>$limit</var></span>, <span>integer <var>$offset</var></span>, <span>string <var>$feedtype</var> = <span class="php-quote">''</span></span>, <span> <var>$uid</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>搜索微博</p>
			</div>

			<div class="description detailed hidden">
				<p>搜索微博</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$type</var></dt>
						<dd>搜索类型，following、all、movement</dd>
						<dt><var>$loadId</var></dt>
						<dd>载入微博ID，从此微博ID开始搜索</dd>
						<dt><var>$limit</var></dt>
						<dd>结果集数目</dd>
						<dt><var>$offset</var></dt>
						<dd>页面偏移</dd>
						<dt><var>$feedtype</var></dt>
						<dd>微博类型</dd>
						<dt><var>$uid</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>搜索后的微博数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="searchFeeds" id="_searchFeeds">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_searchFeeds">#</a>
			<code>searchFeeds( <span>string <var>$key</var></span>, <span>string <var>$feedType</var> = <span class="php-keyword1">null</span></span>, <span>integer <var>$limit</var> = <span class="php-num">10</span></span>, <span>integer <var>$offset</var> = <span class="php-num">0</span></span>, <span>integer <var>$sTime</var> = <span class="php-num">0</span></span>, <span>integer <var>$eTime</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>数据库搜索微博</p>
			</div>

			<div class="description detailed hidden">
				<p>数据库搜索微博</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd>关键字</dd>
						<dt><var>$feedType</var></dt>
						<dd>微博类型，post、repost、postimage</dd>
						<dt><var>$limit</var></dt>
						<dd>结果集数目</dd>
						<dt><var>$offset</var></dt>
						<dd>偏移量</dd>
						<dt><var>$sTime</var></dt>
						<dd>开始时间戳</dd>
						<dt><var>$eTime</var></dt>
						<dd>结束时间戳</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>搜索后的微博数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="shareFeed" id="_shareFeed">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_shareFeed">#</a>
			<code>shareFeed( <span>array <var>$data</var></span>, <span>string <var>$from</var> = <span class="php-quote">'share'</span></span>, <span>array <var>$lessUids</var> = <span class="php-keyword1">null</span> </span> )</code>

			<div class="description short">
				<p>分享到微博</p>
			</div>

			<div class="description detailed hidden">
				<p>分享到微博</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd>分享的相关数据</dd>
						<dt><var>$from</var></dt>
						<dd>是否发@给资源作者，默认为share</dd>
						<dt><var>$lessUids</var></dt>
						<dd>去掉@用户，默认为null</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>分享操作后，相关反馈信息数据
					</div>


					<h4>Example</h4>
					<div class="list">
							<p>需要传入的$data值
sid：转发的微博/资源ID
app_name：app名称
content：转发时的内容信息，有时候会有某些标题的资源
body：转发时，自定义写入的内容
type：微博类型
comment：是否给原作者评论</p><br>
					</div>


			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-application.core.model.Model.html#methods">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#_add">add()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_beforeDelete">beforeDelete()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_create">create()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_deleteByPk">deleteByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetch">fetch()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAll">fetchAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByAttributes">fetchAllByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllByPk">fetchAllByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchAllSortByPk">fetchAllSortByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByAttributes">fetchByAttributes()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchByPk">fetchByPk()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCache">fetchCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_fetchCaches">fetchCaches()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getCacheKey">getCacheKey()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getIsAllowCache">getIsAllowCache()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getMaxId">getMaxId()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_getModelClass">getModelClass()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_init">init()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_modify">modify()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_remove">remove()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateAll">updateAll()</a></code>, 
				<code><a href="class-application.core.model.Model.html#_updateByPk">updateByPk()</a></code>
			</p>
		</div>










		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-application.core.model.Model.html#properties">application\core\model\Model</a></h3></div>
			<p class="elementList">
				<code><a href="class-application.core.model.Model.html#$allowCache"><var>$allowCache</var></a></code>, 
				<code><a href="class-application.core.model.Model.html#$cacheLife"><var>$cacheLife</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
